package cn.cqautotest.cqviehelper.beans;

import java.io.File;

public class FileInfo {
    private int fileType = 0;
    private String fileName;
    private boolean isHidden;
    private File mFile;

    public FileInfo(int fileType,String fileName, File file) {
        this.fileType = fileType;
        this.fileName = fileName;
        mFile = file;
    }

    public int getFileType() {
        return fileType;
    }

    public void setFileType(int fileType) {
        this.fileType = fileType;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public boolean isHidden() {
        return isHidden;
    }

    public FileInfo setHidden(boolean hidden) {
        isHidden = hidden;
        return this;
    }

    public File getFile() {
        return mFile;
    }

    public void setFile(File file) {
        mFile = file;
    }

    public String getAbsolutePath() {
        return mFile.getAbsolutePath();
    }

    public String getPath() {
        return mFile.getPath();
    }

    public boolean isFile() {
        return mFile.isFile();
    }

    public boolean isDirectory() {
        return mFile.isDirectory();
    }
}
